const qs = require('querystring')
const mw=function(req,res,next){
    let  str=''
    req.on('data',(chunk)=>{
        str+=chunk;
    })
    req.on('end',()=>{
        const body= qs.parse(str)
        req.body=body
        next( )
    })
    console.log('中间件函数')
    next()
}
module.exports = mw